package cn.sm1234.dao;

import cn.sm1234.domain.Emp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;
import java.util.List;

/*
* JpaRepository提供的常用接口
* 1）Repository
* 提供了基于方法名字的查询
* 2)CrudRepository
* 3)PagingAndSortingRepository
* 4)JpaRepsitory(提供List强转)  >PagingAndSortingRepository >CrudRepository  >Repository
* 5)JPASpecificationExcutor， 作用是用于组合条件查询(排序+分页）；使用中通常会双继承4，5两项
* */
public interface  EmpRepository  extends JpaRepository<Emp, Integer>,  JpaSpecificationExecutor<Emp> {


}


